package com.crl.module.connecter.core
{
	import com.crl.module.connecter.model.ConnectionInfo;
	
	
	/**
	 *  远程服务连接接口.
	 * @author crl
	 * 
	 */	
	public interface IConnecter
	{
		/**
		 * 连接服务器; 
		 * @param connectionInfo
		 * 
		 */		
		function connect(connectionInfo:ConnectionInfo):void;
		
		/**
		 * 断开与远程的连接; 
		 * 
		 */		
		function close():void;
		
		/**
		 * 连接状态; 
		 * @return 
		 * 
		 */		
		function get connected():Boolean;
	}
}